package Servlet.Blog.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * 登录过滤器
 * @author liyy
 * @description
 * @time 2020/10/12 13:19
 */
@WebFilter(filterName = "AuthenFilter")
public class AuthenFilter implements Filter {

    //private static final Logger logger = Logger.getLogger(AuthenFilter.class); //默认log4j对象

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        filterChain.doFilter(servletRequest, servletResponse);
        //logger.info("AuthenFilter doFilter()");
    }

    @Override
    public void destroy() {

    }
}
